package com.dao.impl;

import java.sql.ResultSet;
import java.sql.SQLException;
import com.dao.UserDAO;
import com.db.JdbcTemplate;

public class UserDAOImpl implements UserDAO {
	private ResultSet rs;

	public boolean find(String username, String password) throws SQLException {
		String sql = "select * from Admin_1 " + "where admID='" + username
				+ "' and admPWD='" + password + "'";
		JdbcTemplate jdbcTemplate = new JdbcTemplate();
		rs = jdbcTemplate.query(sql);
		if (!rs.next()) {
			return false;
		}
		return true;
	}
}